#ifndef VENUS_GRAPHICS_PROGRAME_CG_H
#define VENUS_GRAPHICS_PROGRAME_CG_H

#include "common/venus.h"
#include <Cg/cgGL.h>

namespace venus {
class ProgramCG {
public:
  ProgramCG(CGcontext contex, const char *filename, const char *entry,
            CGGLenum profile_class);
  ~ProgramCG();
  int Activate() const;
  void Deactivate() const;
  CGparameter GetParameter(const char *name) const {
    return cgGetNamedParameter(program_, name);
  }
private: 
  CGprogram program_; 
  CGprofile profile_;
};
} // namespace venus

#endif // VENUS_GRAPHICS_PROGRAME_CG_H
